# import html

def make_element(name, value, **attrs):
    keyvals = [' %s="%s"' % item for item in attrs.items()]
    print(keyvals)
    attr_str = ''.join(keyvals)
    print(attr_str)
    
#     element = '<{name}{attrs}>{value}</{name}>'.format(
#         name=name,
#         attrs=attr_str,
#         value=html.escape(value))
#     return element
# Example
# Creates '<item size="large" quantity="6">Albatross</item>'
make_element('item', 'Albatross', size='large', quantity=6)
# Creates '<p>&lt;spam&gt;</p>'
make_element('p', '<spam>')